Ticket out the Door:
Test the IfThenNotes.frm program with the test data on the notes pages.
Upload to your Gaggle digital locker, delete from the desktop and empty the recycle bin.
Study the notes for meaning.
Summarize what you learned today in a few sentences.
Thursday 11/5/09
Do Now: Discuss the code with a partner and decide on an appropriate comment to put next to each line of code to tell what it does. Write your comments for each line of code on a piece of paper.
Assignment:
Program: FlipCoinPrelim.frm
Ticket out the Door: Finish back work.
Double check what is in your gaggle digital locker.
Do self-evaluations with the quality check off sheet.
Make sure have have turned in all paper and pencil assignments.
Try out what you have learned on a program of your own.
Wednesday 11/4/09
Do Now: Finish the code for at least one of these programs.
Ticket out the Door: Finish back work.
Double check what is in your gaggle digital locker.
Do self-evaluations with the quality check off sheet.
Make sure have have turned in all paper and pencil assignments.
Try out what you have learned on a program of your own.
Thursday 10/29/09
Finish back work.
Program: RandomNumber.frm Program: MyRandom.frm
Double check what is in your gaggle digital locker.
Do self-evaluations with the quality check off sheet.
Make sure have have turned in all paper and pencil assignments.
Try out what you have learned on a program of your own.
Continue through notebook.
Wednesday 10/28/09
Do Now: Finish RandomNumber.frm
Assignment:
Write the answers on paper and keep it for later in the period when you write your own program.
1. When you run your RandomNumber.frm program, do you get the same exact results as the example shown on the direction sheet?
2. Why or why not?
3. What line in the code makes cmdOne produce a decimal?
4. What line in the code makes cmdTen produce a decimal?
5. What line in the code makes cmdFive produce an integer?
6. What line in the code makes cmd100 produce an integer?
7. What line of code guarantees that the results will be truly random?
8. What is the keyword in Visual Basic that produces a random number between 0 and 1?
9. What type of numbers exist between 0 and 1?
10. When you multiply a number between 0 and 1 by 10, how many digits are to the left of the decimal point?
Study the code and the output from several tries before answer these questions.
11. Describe the number that will be stored in memory in LessTen because of this line of code in cmdTen. LessTen = 10 * Rnd
12. Describe the number that will be stored in the variable, UpTo5, because of this line of code in cmdFive. UpTo5 = 5 * Rnd
13. What must Rnd be multiplied by to produce a number from 1 to 33?
14. Write the line of code that will put a random number from 1 to 33 in the variable, UpTo33.
15. True or False: To have a program user pick the highest number, use a textbox to get the number and multiply Rnd by the numerical variable where that number is stored.
16. Write the assignment statement for putting the random integer from 0 to the top number the user provided, into a variable in memory, if these declarations are given?
Dim Top As Integer
Dim UpToTop As Integer
Study the RandomNumber.frm code and its output first. Use your answers that you put on paper from the Do Now. Make sure to type your name in the name box on the left before you start the quiz. After you are finished, read the corrections and the explanations that go with them. Even if you got all the answers correct, please read the explanations that are provided below the problem. If you did not get 100%, click on Try Again at the bottom.
Correct your answers on your lined paper so you have that to refer to when you do your own program.!!
Program: MyRandom.frm
Refer to the questions in the Do Now, your answers on paper, and the quiz explanations to help you with the program.
Ticket out the Door:
Turn in your paper with your name, period and 16 corrected answers on it.
Tuesday 10/27/09
Do Now:
1. Use a random number generator online http://www.random.org/integers/ to pick the number of the ticket that you are hypothetically being given from the range pictured to the right (410005 to 410514). Write down your ticket number.
2. Use a random number generator online to pick the 5 door prize winners' numbers picked from the tickets distributed which had a range of numbers from 410005 to 410514.
Write down the ticket numbers.
3. Did you win a door prize?
4. Ticket numbers 410005 through 410514 were distributed. How many tickets were distributed?
5. Write the chance of winning a door prize as a fraction.
6. Write the chance of winning as a percentage.
Assignment: Program: RandomNumber.frm
Directions can be found in your bluenotebook.
Ticket out the Door:
7. In Visual Basic, a random decimal number between 0 and 1 is generated with the use of the keyword, Rnd.
Type your first and lastnames and your answers from the Do Now and the Ticket out the Door below.
Monday 10/26/09
Do Now:
Pick a number from 1 to 100.
Look in a random direction and write down what you see.
Describe an event in a video game that probably uses the concept of randomness.
Formal Assessment: Finish QuadraticFormula.frm from yesterday. Use the stapled packet.
Self-evaluate your program.
Upload your program to your Gaggle digital locker.
Finish any back work. Study for the assignment statement syntax quiz we will have tomorrow.
Ticket out the Door:
On the same paper as your Do Now, explain how the concept of consitency relates to object names, variable declarations and variable usage in the code.
Wednesday 10/21/09
Do Now:
Turn in green paper from yesterday if you didn't already do so. Assignment Statement Syntax: Part III
On paper:
1. Choose the correct declaration statements that would be necessary when the code contains this assignment statement: PeriodT = 2 * PI * Sqr(Length/32)
2. Write the correct declaration statements that would be necessary when the code contains this assignment statement: HypC = Sqr(LegA ^ 2 + LegB ^ 2)
Formal Individual Assessment: Write a Visual Basic program to calculate the solutions of a quadratic equation using the quadratic formula.
Do a right click on the QuadForm.bmp bitmap picture link
Click on the QuadracticFormula.frm link and save the form file to your desktop.
After the download is complete, open the file.
Click on the empty dashed rectangle. Click on the ... at the Picture property in the properties window. Choose QuadForm.bmp.
Follow the directions on a stapled packet.
Self-evaluate your program.
Ticket out the Door:
Upload your program to your Gaggle digital locker.
Tuesday 10/20/09
Do Now:
Simplify the following in your head:
1. |-3| (Read as the absolute value of negative 3.)
2. |17|
3. (Read as the square root of 81.)
Estimate the value of by using perfect squares surrounding 6 and their square roots.
Find out what the computer TI83 notation is for absolute value and square root by checking your answers.
To find absolute value, choose Math --> to NUM.
Assignment:
Count off by 2.
1's - Explain everything you know about absolute value to your partner.
2's - Explain everything you know about square root to your partner.
Together look through the notes pages on assignment statement syntax.
Highlight the examples with absolute value and the examples with square root.
Discuss the notation for absolute value and taking the square root in Visual Basic.
Together write one sentence explaining how to change algebraic notation for absolute value into Visual Basic notation.
Together write one sentence explaining how to change algebraic notation for square root into Visual Basic notation
Paper and Pencil: Assignment Statement Syntax: Part III
Make sure that you and your partner have everything correct before handing it in.
Ticket out the Door:
Turn in the green Assignment Statement Syntax: Part III paper.
Monday 10/19/09
Do Now:
Vocabulary Word: Depreciation (dee pree she a shun) look up at http://dictionary.com
Read #1 the Depreciation directions in your bluenotebook.
Things depreciate in value over time, as they become worn out or obsolete. Here is a formula that is used by accountants when calculating the depreciation rate for tax purposes. This may be used for vehicles, buildings, equipment, etc.
Use the formula try out the test data from page 3 on the computer TI83 calculator.
Questions to Answer on Paper
1. What is the definition of depreciation?
2. Draw a picture of the calculator screen with the test data used in the depreciation formula.
3. Translate the algebraic version of the formula into a Visual Basic calculation assignment statement using these variables:
Dim DepRate As Single 'DepRate will be used in place of r which stands for the depreciation rate. Dim SalvageValue As Single 'SalvageValue will be used in place of S which stands for the salvage value which is what it is worth after it has depreciated. Dim Cost As Single 'Cost is used in place of C and stand for the original cost of the item. Dim Years As Single
4. What do you think the last line of code in cmdCalculate does? lblDepRate = Format(DepRate, "Percent")
Go over what you have done the student next to you.
Assignment:
Used what you learned from the Do Now to help you complete the program for today.
Program: Depreciation.frm
Ticket out the Door:
Self-evaluate with your Quality Check Off Sheet in your notebook.
Friday 10/16/09
Do Now:
Calculate the average of 3 test scores on the TI83 on the computer. 79, 83, 98 Questions to Answer on Paper
1. Draw a picture of the calculator screen with the number etc.
2. Do you think your answer is correct? Why or why not?
3. If you were to translate what you did on the TI83 into Visual Basic, how many calculation assignment statements would it be?
4. What variables would you need?
5. Write the line or lines of code.
Keep the calculator displayed for our discussion.
Assignment:
Use what you learned from the Do Now to help you with the code for TestAverage.frm.
Program: TestAverage.frm
Ticket out the Door:
Self-evaluate with your Quality Check Off Sheet in your notebook.
Thursday 10/15/09
Do Now:
Refer to the directions for Chirps.frm in your VB notebook.
Crickets chirp more slowly as the temperature gets colder. For a certain kind of cricket, you can predict the temperature by counting how many chiprs they make in 1 hour, and then plugging that into this formula where T stands for temperature which is measured in degrees Fahrenheit and C stands for the number of chirps made in an hour.
In Visual Basic we need to use the variables and constants as they appear in the declaration, besides using the proper operation symbols in the assignment statement used to calculate the temperature.
Given these declarations, what would be the assignment statement to calculate the temperature? Remember to use the proper syntax for Visual Basic. In VB, an assignment statement must be written (typed) on one line straight from the keyboard. No special formatting is used.
Dim Chirps As Integer
Dim Temperature As Single
Assignment:
Program: Chirps.frm
Self-evaluate with your Quality Check Off Sheet in your notebook.
Ticket out the Door:
Why is -50 not a realistic number for input in this program?
What ideas do you have about what we could do about it?
Tuesday 10/13/09
a stopwatch to time how long it takes an object to fall to the ground when it is dropped, you can substitute this number into a formula to calculate the distance that the object fell. For example, if you started timing as soon as you saw an acorn fall from a tree, you could calculate how high above the ground the acorn was when it was on the tree.
The algebraic formula for the distance is
In Visual Basic we need to use the variables and constants as they appear in the declaration, besides using the proper operation symbols.
Assignment:
Program: Freefall.frm
Self-evaluate with your Quality Check Off Sheet in your notebook. Ticket out the Door:
Monday 10/12/09
Do Now:
Read the notes page in the blue notebook, titled, Assignment Statements Syntax: Part II Examples
Ticket out the Door:
Handout: Assignment Statements Syntax: Part II
What is not finished in class is homework.
Friday 10/9/09
Program as a Test:
Program: GoodBye.frm To be done silently and individually.
Follow directions on green paper.
Self-Evaluate:
Does the form look good?
Do the objects have the appropriate names?
Do you have appropriate code in all the command buttons?
Does the cursor start in the first textbox?
Is the tab order correct?
Does the test data produce correct results?
Does the clear button empty the textboxes and the results label and move the cursor to the first textbox?
Does the exit button work?
Email GoodBye.frm as an attachment tojchangen@lancaster.gaggle.net
Turn in green direction sheet.
Finish back assignments.
Thursday 10/8/09
Do Now:
Open your Gaggle digital locker and keep it open while you are taking the quiz, because I will be checking some things in it during that time.
Open Book Test:
Grand Tour Matching Quiz (4 pages on yellow paper) To be done silently and individually.
You may use your blue notebook. Program: QT1MyOwn.frm
Create a program of your own choice that uses techniques that we have learned so far. You may also include new things that you have experimented with yourself. Finish back assignments.
Ticket out the Door:
Save your newest versions of Prom.frm, RectangleArea.frm to the desktop.
Email them to jchangen@lancaster.gaggle.net as attachments.
Turn in all back paper and pencil assignments.
Wednesday 10/7/09
Do Now:
Turn in Grand Tour Questions
Open Book Test:
Program: Hello.frm To be done silently and individually.
Follow directions on blue paper. You may use your blue notebook.
Email Hello.frm as an attachment to jchangen@lancaster.gaggle.net
Turn in blue direction sheet.
Finish back assignments.
Ticket out the Door:
Handout: Grand Tour Picture Matching
Tuesday 10/6/09
Do Now:
Add these to your DoNow.doc in your Gaggle digital locker. What is the formula for the area of a triangle? What is the formula for the area of a rectangle?
Given these variable declarations and textbox data conversions, write the calculation assignment statements for area of a triangle and area of a rectangle that belong on the blank lines.
Dim Base As Single Dim Height As Single Dim TriArea As Single Base = Val(txtBase) Height = Val(txtHeight)
lblTriArea = TriArea
Dim Length As Single Dim Width As Single Dim RectArea As Single Length = Val(txtLength) Width = Val(txtWidth)
lblRectArea = RectArea
Assignment:
Program: PlayBall.frm
PaperPencil: Grand Tour Questions
Ticket out the Door:
Turn in the finished packet, Grand Tour Questions. If you are not done, finish it for homework, and have it ready to hand in tomorrow at the beginning of the period.
Update your Quality Check Off Sheet
Tell Miss Hangen what you are on.
Monday 10/5/09
Do Now:
Add this question and your answer to it, to your DoNow.doc in your Gaggle digital locker.
What does debug mean? Assignment:
Program: RectangleArea.frm
Program: PlayBall.frm Ticket out the Door:
Update your Quality Check Off Sheet
Tell Miss Hangen what you are on.
Friday 10/2/09
Assignment:
Continue through notebook.
Program: TriangleArea.frm
Continue through notebook.
Thursday 10/1/09
Do Now: Matching questions sent to your computer through SynchronEyes Assignment:
Continue through notebook.
Program: TriangleArea.frm
Ticket out the Door: Turn in 2 packets:
Questions on Declaring Variables with a Dim Statement
Assignment Statement Syntax: Part I
Save any files to the desktop and upload to your Gaggle digital locker.
Wednesday 9/30/09
Do Now:
Assignment:
Continue through notebook. Do packet: Assignment Statement Syntax: Part I
Ticket out the Door: Turn in 2 packets:
Questions on Declaring Variables with a Dim Statement
Assignment Statement Syntax: Part I
Save any files to the desktop and upload to your Gaggle digital locker.
Tuesday 9/29/09
Assignment:
Use the notes sheet in the notebook, titled Declaring Variables with a Dim Statement, to do the multiple choice questions in the stapled packet. Turn in the finished packet, today.
Continue through notebook.
Monday 9/28/09
Do Now:
Assignment:
Continue through notebook. Read: Declaring Variables with a Dim Statement (in notebook or here) Get and do question packet on Declaring Variables with a Dim Statement (Get from Miss Hangen or use this one.
) Ticket out the Door: Mark the page number and direction number that you are on next to the name of the program you are working with, on your table of contents paper in your blue notebook. Save your program to the desktop. Upload all programs you worked on today, to your gaggle locker. Log out of Gaggle. Delete your VB program files from the desktop. Empty the recycling bin. Close all programs that are open or minimized so you get back to the plain desktop. Clean your area, putting trash in the trash can. Stay in your seat until the bell rings.
Friday 9/25/09
Continue through notebook. Program: Prom.frm Read: Declaring Variables with a Dim Statement Get and do question packet on Declaring Variables with a Dim Statement
Thursday 9/24/09
Assignment: Continue through notebook. Program: Prom.frm Read: Declaring Variables with a Dim Statement Get and do question packet on Declaring Variables with a Dim Statement
Assignment:
Continue through notebook.
Program: Prom.frm
Read: Declaring Variables with a Dim Statement
Wednesday 9/23/09
Do Now:
5 questions will be sent to your computer. Assignment:
Continue through notebook.
Finish Pet.frm
Start Prom.frm Ticket out the Door: Mark the page number and direction number that you are on next to the name of the program you are working with, on your table of contents paper in your blue notebook. Save your program to the desktop. Upload all programs you worked on today, to your gaggle locker. Log out of Gaggle. Delete your VB program files from the desktop. Empty the recycling bin. Close all programs that are open or minimized so you get back to the plain desktop. Clean your area, putting trash in the trash can. Stay in your seat until the bell rings.
Tuesday 9/22/09
Do Now:
Finish GrandTour.frm, Hi.frm, ComputerNews.frm including adding a clear button. Assignment:
Pet.frm
Continue through notebook. Ticket out the Door:
Mark the page number and direction number that you are on next to the name of the program you are working with, on your table of contents paper in your blue notebook.
Save your program to the desktop.
Upload all programs you worked on today, to your gaggle locker.
Log out of Gaggle.
Delete your VB program files from the desktop.
Empty the recycling bin.
Close all programs that are open or minimized so you get back to the plain desktop.
Clean your area, putting trash in the trash can.
Stay in your seat until the bell rings.
Monday 9/21/09
Do Now:
Add your answer to this question to your Do Now document in your gaggle digital locker.
What do you think is an appropriate tab order for the ComputerNews program? Assignment:
We will look at ComputerNews.frm together and fix as necessary.
Continue through notebook. Ticket out the Door:
Mark the page number and direction number that you are on next to the name of the program you are working with, on your table of contents paper in your blue notebook.
Save your program to the desktop.
Upload all programs you worked on today, to your gaggle locker.
Log out of Gaggle.
Delete your VB program files from the desktop.
Empty the recycling bin.
Close all programs that are open or minimized so you get back to the plain desktop.
Clean your area, putting trash in the trash can.
Stay in your seat until the bell rings.
Friday 9/18/09
Do Now:
Add your answer to this question to your Do Now document in your gaggle digital locker.
What are the 3 objects that we used in our programs so far and what are they used for? Assignment:
Finish ComputerNews.frm
Continue in the notebook with the directions for adding a clear button to ComputerNews.frm.
Follow the notebook directions carefully. Read all of the words and look at all of the pictures as you go. Ticket out the Door:
Mark the page number and direction number that you are on next to the name of the program you are working with, on your table of contents paper in your blue notebook.
Save your program to the desktop.
Upload all programs you worked on today, to your gaggle locker.
Log out of Gaggle.
Delete your VB program files from the desktop.
Empty the recycling bin.
Close all programs that are open or minimized so you get back to the plain desktop.
Clean your area, putting trash in the trash can.
Stay in your seat until the bell rings.
Thursday 9/17/09 Do Now:
Get into your gaggle digital locker.
Double click on GrandTour.frm.
Save it to the desktop.
Refer to your Table of Contents to see where you are in the directions. Assignment:
Finish GrandTour.frm
Upload it to your digital locker.
Completely close Visual Basic then click on the Visual Basic 4 program shortcut on the desktop to start a new program.
Follow the directions in your notebook for Hi.frm
Make sure to save it to the desktop with the name Hi.frm.
Make the caption of the form Hi by Your Name.
After completing Hi.frm move on to ComputerNews.frm.
Follow the notebook directions carefully. Read all of the words and look at all of the pictures as you go. Ticket out the Door:
Mark the page number and direction number that you are on next to the name of the program you are working with, on your table of contents paper in your blue notebook.
Save your program to the desktop.
Upload all programs you worked on today, to your gaggle locker.
Log out of Gaggle.
Delete your VB program files from the desktop.
Empty the recycling bin.
Close all programs that are open or minimized so you get back to the plain desktop.
Clean your area, putting trash in the trash can.
Stay in your seat until the bell rings.
Computer Programing I in Visual Basic --- CS602 --- Daily Assignments
First Marking Period
Friday 11/6/09
Do Now:Finish: FlipCoinPrelim.frm
Assignment:
Read: If Then Notes
Program: IfThenNotes.frm
Use this form and the code on the notes pages to complete the program. Save to the desktop.
Ticket out the Door:
Test the IfThenNotes.frm program with the test data on the notes pages.
Upload to your Gaggle digital locker, delete from the desktop and empty the recycle bin.
Study the notes for meaning.
Summarize what you learned today in a few sentences.
Thursday 11/5/09
Do Now:Discuss the code with a partner and decide on an appropriate comment to put next to each line of code to tell what it does.
Write your comments for each line of code on a piece of paper.
Assignment:
Program: FlipCoinPrelim.frm
Ticket out the Door:
Finish back work.
Double check what is in your gaggle digital locker.
Do self-evaluations with the quality check off sheet.
Make sure have have turned in all paper and pencil assignments.
Try out what you have learned on a program of your own.
Wednesday 11/4/09
Do Now:Finish the code for at least one of these programs.
Assignment:
Program: FlipCoinPrelim.frm
Ticket out the Door:
Finish back work.
Double check what is in your gaggle digital locker.
Do self-evaluations with the quality check off sheet.
Make sure have have turned in all paper and pencil assignments.
Try out what you have learned on a program of your own.
Thursday 10/29/09
Finish back work.
Program: RandomNumber.frmProgram: MyRandom.frm
Double check what is in your gaggle digital locker.
Do self-evaluations with the quality check off sheet.
Make sure have have turned in all paper and pencil assignments.
Try out what you have learned on a program of your own.
Continue through notebook.
Wednesday 10/28/09
Do Now:Finish RandomNumber.frm
Assignment:
Write the answers on paper and keep it for later in the period when you write your own program.
1. When you run your RandomNumber.frm program, do you get the same exact results as the example shown on the direction sheet?
2. Why or why not?
3. What line in the code makes cmdOne produce a decimal?
4. What line in the code makes cmdTen produce a decimal?
5. What line in the code makes cmdFive produce an integer?
6. What line in the code makes cmd100 produce an integer?
7. What line of code guarantees that the results will be truly random?
8. What is the keyword in Visual Basic that produces a random number between 0 and 1?
9. What type of numbers exist between 0 and 1?
10. When you multiply a number between 0 and 1 by 10, how many digits are to the left of the decimal point?
Study the code and the output from several tries before answer these questions.
11. Describe the number that will be stored in memory in LessTen because of this line of code in cmdTen. LessTen = 10 * Rnd
12. Describe the number that will be stored in the variable, UpTo5, because of this line of code in cmdFive. UpTo5 = 5 * Rnd
13. What must Rnd be multiplied by to produce a number from 1 to 33?
14. Write the line of code that will put a random number from 1 to 33 in the variable, UpTo33.
15. True or False: To have a program user pick the highest number, use a textbox to get the number and multiply Rnd by the numerical variable where that number is stored.
16. Write the assignment statement for putting the random integer from 0 to the top number the user provided, into a variable in memory, if these declarations are given?
Dim Top As Integer
Dim UpToTop As Integer
Study the RandomNumber.frm code and its output first. Use your answers that you put on paper from the Do Now. Make sure to type your name in the name box on the left before you start the quiz. After you are finished, read the corrections and the explanations that go with them. Even if you got all the answers correct, please read the explanations that are provided below the problem. If you did not get 100%, click on Try Again at the bottom.
Correct your answers on your lined paper so you have that to refer to when you do your own program.!!
Program: MyRandom.frm
Refer to the questions in the Do Now, your answers on paper, and the quiz explanations to help you with the program.
Ticket out the Door:
Turn in your paper with your name, period and 16 corrected answers on it.
Tuesday 10/27/09
Do Now:1. Use a random number generator online http://www.random.org/integers/ to pick the number of the ticket that you are hypothetically being given from the range pictured to the right (410005 to 410514). Write down your ticket number.
2. Use a random number generator online to pick the 5 door prize winners' numbers picked from the tickets distributed which had a range of numbers from 410005 to 410514.
Write down the ticket numbers.
3. Did you win a door prize?
4. Ticket numbers 410005 through 410514 were distributed. How many tickets were distributed?
5. Write the chance of winning a door prize as a fraction.
6. Write the chance of winning as a percentage.
Assignment:
Program: RandomNumber.frm
Directions can be found in your blue notebook.
Ticket out the Door:
7. In Visual Basic, a random decimal number between 0 and 1 is generated with the use of the keyword, Rnd.
Type your first and last names and your answers from the Do Now and the Ticket out the Door below.
Monday 10/26/09
Do Now:Pick a number from 1 to 100.
Look in a random direction and write down what you see.
Describe an event in a video game that probably uses the concept of randomness.
Class Activity:
Assignment: Read about random, random numbers, randomness, etc at these websites.
Share out the readings with the students in your row.
Takes notes on your paper.
Discuss what you learned with the students in your row.
1 http://www.random.org/
2 http://www.random.org/integers/
3 http://en.wikipedia.org/wiki/Random_number
4 http://en.wikipedia.org/wiki/Random
5 http://graphpad.com/quickcalcs/randomN1.cfm
6 http://en.wikipedia.org/wiki/Random_Number_Generator
7 http://mathworld.wolfram.com/RandomNumber.html
8 http://www.psychicscience.org/random.aspx
Ticket out the Door:
Write 5 lines about what you learned from your reading and from the students in your row, sharing what they learned.
Friday 10/23/09
Do Now:Study the assignment statement notes in the notebook or here. AssignVBSyntaxIIExamples.pdf
AssignSyntaxNotes.pdf VBAssignSyntax.pdf
Study for the assignment statement quiz.
Class Activity:
Assignment Statement Quiz
- Close you notebook. Close Gaggle, Close everything on your computer except this VB form.
- Open Quiz1.frm

Quiz1.Frm
- Details
- Download
- 2 KB
- Double click on the Quiz command button.
- Type the assignment statements in here to make sure that they don't show up red.
- Handwrite the assignment statements on the quiz paper.
- Close Quiz1.frm
*Finish any back work.
Ticket out the Door:Turn in the assignment statement quiz.
Thursday 10/22/09
Do Now:Study the assignment statement notes in the notebook or here. AssignVBSyntaxIIExamples.pdf
AssignSyntaxNotes.pdf VBAssignSyntax.pdf
Write 5 lines in 5 minutes about converting an algebraic formula into a Visual Basic assignment statement.
Formal Assessment:
Finish QuadraticFormula.frm from yesterday. Use the stapled packet.
Self-evaluate your program.
Upload your program to your Gaggle digital locker.
Finish any back work.
Study for the assignment statement syntax quiz we will have tomorrow.
Ticket out the Door:On the same paper as your Do Now, explain how the concept of consitency relates to object names, variable declarations and variable usage in the code.
Wednesday 10/21/09
Do Now:Turn in green paper from yesterday if you didn't already do so. Assignment Statement Syntax: Part III
On paper:
1. Choose the correct declaration statements that would be necessary when the code contains this assignment statement:
PeriodT = 2 * PI * Sqr(Length/32)
2. Write the correct declaration statements that would be necessary when the code contains this assignment statement:
HypC = Sqr(LegA ^ 2 + LegB ^ 2)
Formal Individual Assessment:
Write a Visual Basic program to calculate the solutions of a quadratic equation using the quadratic formula.
Do a right click on the QuadForm.bmp bitmap picture link
Program: QuadraticFormula.frm
Click on the QuadracticFormula.frm link and save the form file to your desktop.
After the download is complete, open the file.
Click on the empty dashed rectangle. Click on the ... at the Picture property in the properties window. Choose QuadForm.bmp.
Follow the directions on a stapled packet.
Self-evaluate your program.
Ticket out the Door:Upload your program to your Gaggle digital locker.
Tuesday 10/20/09
Do Now:Simplify the following in your head:
1. |-3| (Read as the absolute value of negative 3.)
2. |17|
3.
Estimate the value of
Find out what the computer TI83 notation is for absolute value and square root by checking your answers.
To find absolute value, choose Math --> to NUM.
Assignment:
Count off by 2.
1's - Explain everything you know about absolute value to your partner.
2's - Explain everything you know about square root to your partner.
Paper and Pencil: Assignment Statement Syntax: Part III
Make sure that you and your partner have everything correct before handing it in.
Ticket out the Door:
Turn in the green Assignment Statement Syntax: Part III paper.
Monday 10/19/09
Do Now:Vocabulary Word: Depreciation (dee pree she a shun) look up at http://dictionary.com
Read #1 the Depreciation directions in your blue notebook.
Things depreciate in value over time, as they become worn out or obsolete. Here is a formula that is used by accountants when calculating the depreciation rate for tax purposes. This may be used for vehicles, buildings, equipment, etc.
Use the formula try out the test data from page 3 on the computer TI83 calculator.
Questions to Answer on Paper
1. What is the definition of depreciation?
2. Draw a picture of the calculator screen with the test data used in the depreciation formula.
3. Translate the algebraic version of the formula into a Visual Basic calculation assignment statement using these variables:
Dim DepRate As Single 'DepRate will be used in place of r which stands for the depreciation rate.
Dim SalvageValue As Single 'SalvageValue will be used in place of S which stands for the salvage value which is what it is worth after it has depreciated.
Dim Cost As Single 'Cost is used in place of C and stand for the original cost of the item.
Dim Years As Single
4. What do you think the last line of code in cmdCalculate does?
lblDepRate = Format(DepRate, "Percent")
Go over what you have done the student next to you.
Assignment:
Used what you learned from the Do Now to help you complete the program for today.
Program: Depreciation.frm
Ticket out the Door:
Self-evaluate with your Quality Check Off Sheet in your notebook.
Friday 10/16/09
Do Now:Calculate the average of 3 test scores on the TI83 on the computer. 79, 83, 98
Questions to Answer on Paper
1. Draw a picture of the calculator screen with the number etc.
2. Do you think your answer is correct? Why or why not?
3. If you were to translate what you did on the TI83 into Visual Basic, how many calculation assignment statements would it be?
4. What variables would you need?
5. Write the line or lines of code.
Keep the calculator displayed for our discussion.
Assignment:
Use what you learned from the Do Now to help you with the code for TestAverage.frm.
Program: TestAverage.frm
Ticket out the Door:
Self-evaluate with your Quality Check Off Sheet in your notebook.
Thursday 10/15/09
Do Now:Refer to the directions for Chirps.frm in your VB notebook.
Crickets chirp more slowly as the temperature gets colder. For a certain kind of cricket, you can predict the temperature by counting how
In Visual Basic we need to use the variables and constants as they appear in the declaration, besides using the proper operation symbols in the assignment statement used to calculate the temperature.
Given these declarations, what would be the assignment statement to calculate the temperature? Remember to use the proper syntax for Visual Basic. In VB, an assignment statement must be written (typed) on one line straight from the keyboard. No special formatting is used.
Dim Chirps As Integer
Dim Temperature As Single
Assignment:
Program: Chirps.frm
Self-evaluate with your Quality Check Off Sheet in your notebook.
Ticket out the Door:
Why is -50 not a realistic number for input in this program?
What ideas do you have about what we could do about it?
Tuesday 10/13/09
a stopwatch to time how long it takes an object to fall to the ground when it is dropped, you can substitute this number into a formula to calculate the distance that the object fell. For example, if you started timing as soon as you saw an acorn fall from a tree, you could calculate how high above the ground the acorn was when it was on the tree.The algebraic formula for the distance is
In Visual Basic we need to use the variables and constants as they appear in the declaration, besides using the proper operation symbols.
Assignment:
Program: Freefall.frm
Self-evaluate with your Quality Check Off Sheet in your notebook.
Ticket out the Door:
Monday 10/12/09
Do Now:Read the notes page in the blue notebook, titled, Assignment Statements Syntax: Part II Examples
Class Activity:
Jigzaw discussion on Division, Constants, Exponents
Handout: Assignment Statements Syntax: Part II
Ticket out the Door:
Handout: Assignment Statements Syntax: Part II
What is not finished in class is homework.
Friday 10/9/09
Program as a Test:Program: GoodBye.frm To be done silently and individually.
Follow directions on green paper.
Self-Evaluate:
Does the form look good?
Do the objects have the appropriate names?
Do you have appropriate code in all the command buttons?
Does the cursor start in the first textbox?
Is the tab order correct?
Does the test data produce correct results?
Does the clear button empty the textboxes and the results label and move the cursor to the first textbox?
Does the exit button work?
Email GoodBye.frm as an attachment to jchangen@lancaster.gaggle.net
Turn in green direction sheet.
Finish back assignments.
Thursday 10/8/09
Do Now:Open your Gaggle digital locker and keep it open while you are taking the quiz, because I will be checking some things in it during that time.
Open Book Test:
Grand Tour Matching Quiz (4 pages on yellow paper)
To be done silently and individually.
You may use your blue notebook.
Program: QT1MyOwn.frm
Create a program of your own choice that uses techniques that we have learned so far. You may also include new things that you have experimented with yourself.
Finish back assignments.
Ticket out the Door:
Save your newest versions of Prom.frm, RectangleArea.frm to the desktop.
Email them to jchangen@lancaster.gaggle.net as attachments.
Turn in all back paper and pencil assignments.
Wednesday 10/7/09
Do Now:Turn in Grand Tour Questions
Open Book Test:
Program: Hello.frm To be done silently and individually.
Follow directions on blue paper. You may use your blue notebook.
Email Hello.frm as an attachment to jchangen@lancaster.gaggle.net
Turn in blue direction sheet.
Finish back assignments.
Ticket out the Door:
Handout: Grand Tour Picture Matching
Tuesday 10/6/09
Do Now:Add these to your DoNow.doc in your Gaggle digital locker.
What is the formula for the area of a triangle?
What is the formula for the area of a rectangle?
Given these variable declarations and textbox data conversions, write the calculation assignment statements for area of a triangle and area of a rectangle that belong on the blank lines.
Dim Base As Single
Dim Height As Single
Dim TriArea As Single
Base = Val(txtBase)
Height = Val(txtHeight)
lblTriArea = TriArea
Dim Length As Single
Dim Width As Single
Dim RectArea As Single
Length = Val(txtLength)
Width = Val(txtWidth)
lblRectArea = RectArea
Assignment:
Program: PlayBall.frm
PaperPencil: Grand Tour Questions
Ticket out the Door:
Turn in the finished packet, Grand Tour Questions.
If you are not done, finish it for homework, and have it ready to hand in tomorrow at the beginning of the period.
Update your Quality Check Off Sheet
Tell Miss Hangen what you are on.
Monday 10/5/09
Do Now:Add this question and your answer to it, to your DoNow.doc in your Gaggle digital locker.
What does debug mean?
Assignment:
Program: RectangleArea.frm
Program: PlayBall.frm
Ticket out the Door:
Update your Quality Check Off Sheet
Tell Miss Hangen what you are on.
Friday 10/2/09
Assignment:Continue through notebook.
Program: TriangleArea.frm
Continue through notebook.
Thursday 10/1/09
Do Now:Matching questions sent to your computer through SynchronEyes
Assignment:
Continue through notebook.
Program: TriangleArea.frm
Ticket out the Door:
Turn in 2 packets:
- Questions on Declaring Variables with a Dim Statement
- Assignment Statement Syntax: Part I
Save any files to the desktop and upload to your Gaggle digital locker.Wednesday 9/30/09
Do Now:Assignment:
Continue through notebook.
Do packet: Assignment Statement Syntax: Part I
Ticket out the Door:
Turn in 2 packets:
- Questions on Declaring Variables with a Dim Statement
- Assignment Statement Syntax: Part I
Save any files to the desktop and upload to your Gaggle digital locker.Tuesday 9/29/09
Assignment:Use the notes sheet in the notebook, titled Declaring Variables with a Dim Statement, to do the multiple choice questions in the stapled packet. Turn in the finished packet, today.
Continue through notebook.
Monday 9/28/09
Do Now:Assignment:
Continue through notebook.
Read: Declaring Variables with a Dim Statement (in notebook or here)
Get and do question packet on Declaring Variables with a Dim Statement (Get from Miss Hangen or use this one.
Ticket out the Door:
Mark the page number and direction number that you are on next to the name of the program you are working with, on your table of contents paper in your blue notebook.
Save your program to the desktop.
Upload all programs you worked on today, to your gaggle locker.
Log out of Gaggle.
Delete your VB program files from the desktop.
Empty the recycling bin.
Close all programs that are open or minimized so you get back to the plain desktop.
Clean your area, putting trash in the trash can.
Stay in your seat until the bell rings.
Friday 9/25/09
Continue through notebook.Program: Prom.frm
Read: Declaring Variables with a Dim Statement
Get and do question packet on Declaring Variables with a Dim Statement
Thursday 9/24/09
Assignment:Continue through notebook.
Program: Prom.frm
Read: Declaring Variables with a Dim Statement
Get and do question packet on Declaring Variables with a Dim Statement
Assignment:
Continue through notebook.
Program: Prom.frm
Read: Declaring Variables with a Dim Statement
Wednesday 9/23/09
Do Now:5 questions will be sent to your computer.
Assignment:
Continue through notebook.
Finish Pet.frm
Start Prom.frm
Ticket out the Door:
Mark the page number and direction number that you are on next to the name of the program you are working with, on your table of contents paper in your blue notebook.
Save your program to the desktop.
Upload all programs you worked on today, to your gaggle locker.
Log out of Gaggle.
Delete your VB program files from the desktop.
Empty the recycling bin.
Close all programs that are open or minimized so you get back to the plain desktop.
Clean your area, putting trash in the trash can.
Stay in your seat until the bell rings.
Tuesday 9/22/09
Do Now:Finish GrandTour.frm, Hi.frm, ComputerNews.frm including adding a clear button.
Assignment:
Pet.frm
Continue through notebook.
Ticket out the Door:
Mark the page number and direction number that you are on next to the name of the program you are working with, on your table of contents paper in your blue notebook.
Save your program to the desktop.
Upload all programs you worked on today, to your gaggle locker.
Log out of Gaggle.
Delete your VB program files from the desktop.
Empty the recycling bin.
Close all programs that are open or minimized so you get back to the plain desktop.
Clean your area, putting trash in the trash can.
Stay in your seat until the bell rings.
Monday 9/21/09
Do Now:Add your answer to this question to your Do Now document in your gaggle digital locker.
What do you think is an appropriate tab order for the ComputerNews program?
Assignment:
We will look at ComputerNews.frm together and fix as necessary.
Continue through notebook.
Ticket out the Door:
Mark the page number and direction number that you are on next to the name of the program you are working with, on your table of contents paper in your blue notebook.
Save your program to the desktop.
Upload all programs you worked on today, to your gaggle locker.
Log out of Gaggle.
Delete your VB program files from the desktop.
Empty the recycling bin.
Close all programs that are open or minimized so you get back to the plain desktop.
Clean your area, putting trash in the trash can.
Stay in your seat until the bell rings.
Friday 9/18/09
Do Now:Add your answer to this question to your Do Now document in your gaggle digital locker.
What are the 3 objects that we used in our programs so far and what are they used for?
Assignment:
Finish ComputerNews.frm
Continue in the notebook with the directions for adding a clear button to ComputerNews.frm.
Follow the notebook directions carefully. Read all of the words and look at all of the pictures as you go.
Ticket out the Door:
Mark the page number and direction number that you are on next to the name of the program you are working with, on your table of contents paper in your blue notebook.
Save your program to the desktop.
Upload all programs you worked on today, to your gaggle locker.
Log out of Gaggle.
Delete your VB program files from the desktop.
Empty the recycling bin.
Close all programs that are open or minimized so you get back to the plain desktop.
Clean your area, putting trash in the trash can.
Stay in your seat until the bell rings.
Thursday 9/17/09
Do Now:
Get into your gaggle digital locker.
Double click on GrandTour.frm.
Save it to the desktop.
Refer to your Table of Contents to see where you are in the directions.
Assignment:
Finish GrandTour.frm
Upload it to your digital locker.
Completely close Visual Basic then click on the Visual Basic 4 program shortcut on the desktop to start a new program.
Follow the directions in your notebook for Hi.frm
Make sure to save it to the desktop with the name Hi.frm.
Make the caption of the form Hi by Your Name.
After completing Hi.frm move on to ComputerNews.frm.
Follow the notebook directions carefully. Read all of the words and look at all of the pictures as you go.
Ticket out the Door:
Mark the page number and direction number that you are on next to the name of the program you are working with, on your table of contents paper in your blue notebook.
Save your program to the desktop.
Upload all programs you worked on today, to your gaggle locker.
Log out of Gaggle.
Delete your VB program files from the desktop.
Empty the recycling bin.
Close all programs that are open or minimized so you get back to the plain desktop.
Clean your area, putting trash in the trash can.
Stay in your seat until the bell rings.